package com.data.documents;
/**
 * The document class. It is the superclass of
 * all the documents of the Doctors Office.
 * 
 * @author Elizabeth
 * @version 3.14
 *
 */
public class UserDocument implements Comparable<UserDocument>{
	
	public static final int APPOINTMENT = 0, TREATMENT_RECORD = 1, DOCTORS_ORDER = 2, INVOICE = 3;
	/**
	 * document id
	 */
	private String docId;
	private String docType;
	
	/**
	 * Creates a new Document
	 * @param docId
	 */
	public UserDocument(String docId, String docType){
		this.docId = docId;
		this.docType = docType;
	}
	
	/**
	 * gets the Documents's id
	 * @return document's id
	 */
	public String getDocId() {
		return docId;
	}
	
	/**
	 * sets the document's id
	 * @param docId
	 */
	public void setDocId(String docId){
		this.docId = docId;
	}
	
	public String getDocType(){
		return docType;
	}
	public Object[] getData(){
		/**
		 * IMPLEMENT THE METHOD BELOW INSTEAD
		 */
		return null;
	}
	
	public String[] getDataAsStrings(){
		/**
		 * IMPLEMENT THIS ONE!!!
		 */
		String[] sample = {"type","date","note"};
		return sample;
	}
	
	public int compareTo(UserDocument doc){
		return 1;
	}
}